package com.example.jetpacktest.room.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Transaction
import com.example.jetpacktest.room.bean.AUser
import com.example.jetpacktest.room.bean.AUserLibrary
import com.example.jetpacktest.room.bean.AUserPlayList

@Dao
interface AUserDao {

    @Transaction
    @Query("select * from a_user")
    fun getAUserLibrary(): List<AUserLibrary>

    @Insert
    fun addAUser(vararg user: AUser)

    @Transaction
    @Query("select * from a_user")
    fun getAUserPlayList(): List<AUserPlayList>

}